ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






STATEMENT:  Dim

Dim

The Dim statement allows you to explicity declare new variables and to allocate storage space (memory).

Code:
<% Dim myvariable = 123.456 %>

You can also declare variables in VBScript without using Dim.

Code:
<% myvariable = 123.456 %>

You can use Dim to declare several variables at the same time.

Code:
<%  Dim myarray()  frog = "Kermit"  twopi = 6.28  bigarray(9999) %>